<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>♥♥♥</title>
</head>
<body>
<h1 style="text-align: center;color: red"> ' ♥♥♥ 吃屁</h1>

<script>


    /**
     * 找最大的数
     */
    function findMaxNum(){
        let numArr =  [1,9,8,2,5,6]
        let maxNum = numArr[0];
        for (let i = 0; i < numArr.length; i++) {
            let cNum = numArr[i]
            if(cNum > maxNum){
                maxNum = cNum
            }
        }
        return maxNum;
    }
    console.log('findMaxNum()', findMaxNum())

</script>
</body>
</html>